﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace shop.Models
{

    public class RegisterRequest
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "手机号码不能为空")]
        [StringLength(11,ErrorMessage ="手机号码为11位",MinimumLength = 11)]
        public string Mobile { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; }
        /// <summary>
        /// 确认
        /// </summary>
        [Required(ErrorMessage = "确认密码不能为空")]
        public string CirPassword { get; set; }
    }
}
